package com.cnbot.httpsdk.api;


import com.cnbot.httpsdk.bean.BasAirportBean;
import com.cnbot.httpsdk.bean.BaseResBean;

import retrofit2.http.GET;
import retrofit2.http.POST;
import retrofit2.http.Query;
import rx.Observable;


/**
 * Copyright (c) 2016-a  Hunan Cnbot Co., Ltd. All Rights Reserved.
 *
 * @descriptoin http请求接口
 * @FileName: IHttpInterface.java
 * @author: dc
 * @date: 2019/1/18 11:13
 * @version: 1.0
 */

public interface IHttpInterface {


    /**
     **  根据机场起始地机场查询航班
     ** http://192.168.40.30:8081/airportrobot/rest/flt/getByPlaceCond?pageNo=1&pageSize=10&airportCode=CKG&aord=A&queryDate=2019-01-15
     */
    @POST("rest/flt/getByPlaceCond")
    Observable<BaseResBean> getByPlaceCond(@Query("pageNo") int pageNo, @Query("pageSize") int pageSize, @Query("airportCode") String airportCode
    , @Query("aord") String aord, @Query("queryDate") String queryDate);

    /**
     * 获取机场基础数据
     * http://192.168.40.30:8081/airportrobot/rest/flt/basAirport
     * @return
     */
    @GET("rest/flt/basAirport")
    Observable<BasAirportBean> getBasAirport();
}
